<?php
if(isset($_GET["id"])){
	$mediaurl=Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
	$partner=Mage::getModel('marketplaceprofile/marketplaceprofile')->getPartnerProfileById($_GET["id"]);
	if(count($partner)<2){ $this->_redirect($this->getBaseUrl());}
?>
<link href="<?php echo $this->getSkinUrl('Customerpartner/css/global.css'); ?>" rel="stylesheet" type="text/css" /> 
<style>
.main{ background-image:none; background-color:<?php echo $partner['backgroundth'];?>;}
</style>
<div class="linkgeneration">
	<div class="compname"> <h1><?php echo Mage::helper('marketplacepartner')->__('Store Visit') ?> : </h1><p><?php echo $partner['compname']; ?></p></div>
	<div class="bannerlink">
		<img class="bannerpic" src="<?php echo $mediaurl.'avatar/'.$partner['bannerpic']; ?>" />
	</div>
	<div class="compdesi">
		<br>
		<h1><?php echo Mage::helper('marketplacepartner')->__('About US') ?></h1>
		<?php echo $partner['compdesi']; ?>	
	</div>
</div>
<?php } else { echo Mage::helper('marketplacepartner')->__('Invalid store'); }